package com.shameit.goodqrinfomanager.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder;
import com.shameit.goodqrinfomanager.bean.enity.SyncLogBean;
import com.shameit.goodqrinfomanager.databinding.ItemSyncLogBinding;

import org.jetbrains.annotations.NotNull;

public class SyncLogAdapter extends BaseQuickAdapter<SyncLogBean, BaseDataBindingHolder<ItemSyncLogBinding>> {
    public SyncLogAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NotNull BaseDataBindingHolder<ItemSyncLogBinding> itemSyncLogBindingBaseDataBindingHolder, SyncLogBean syncLogBean) {
        ItemSyncLogBinding binding = itemSyncLogBindingBaseDataBindingHolder.getDataBinding();
        if (binding != null) {
            binding.setData(syncLogBean);
        }
    }
}
